#ifndef USERZZL_H
#define USERZZL_H

#include <QObject>
#include <header.h>

class groupZZL;
class userZZL
{
public:
    userZZL();
    userZZL(int num_id, QString name, QString pswd, QString location, QDateTime rgTime, QDateTime birthday);

//    virtual bool loginCheck(QString userName, QString passWord) const = 0;
//    virtual void sendMsgToUser(QString msg, userZZL* target) const = 0;
//    virtual void sendMsgToGroup(QString msg, groupZZL* target) const = 0;

    int getNum_id() const;
    QString getUsername() const;
    QString getLocation() const;

    QDateTime getRgTime() const;
    QDateTime getBthDay() const;


private:
    int num_id;
    QString userName;
    QString passWord;
    QString location;
    std::vector<userZZL*> peerList;

    QDateTime registerTime;
    QDateTime birthday;


};

#endif // USERZZL_H
